package cn.com.bluemoon.daps.system.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description 菜单入参;
 * @Author luolq
 * @Date 2022/12/22 10:50
 * @Vsersion 1.0
 **/
@Data
public class MenuDto {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "父ID")
    private Long parentId;

    @NotBlank(message = "菜单名不能为空")
    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "链接地址")
    private String url;

    @ApiModelProperty(value = "排序号")
    @NotNull(message = "排序号不能为空")
    private Integer sort;

    @ApiModelProperty(value = "是否启用（1：启用，0：未启用）")
    private Integer isUse;

    @ApiModelProperty(value = "备注")
    private String remarks;
}
